Q clickable Class
Adds a cool "popping" effect to a clickable element when you press it, which especially looks nice on touchscreens. I originally came up with this effect at Intermagix.
Constructor
Q clickable
(
-
[options] -
[option.press.ease=Q.Animation.ease.linear]
Parameters:
-
[options]Object optionaloptions for function configuration
-
[className]String optionalany CSS classes to add to the container element
-
[shadow]Object | Null optionalshadow effect configuration, or false for no shadow
-
[press]Object optionalpress
-
[release]Object optionalrelease
-
[snapback]Object optionalsnapback
-
[duration=75]Number optionalduration -
[ease=Q.Animation.ease.smooth]Q.Animation.ease optional
-
-
[center]Object optionalcenter
-
[selectable=false]Boolean optional -
[triggers=null]Boolean optionalA jquery selector or jquery of additional elements to trigger the clickable
-
[onPress]Q.Event optionalonPress occurs after the user begins a click or tap.
-
[onRelease]Q.Event optionalonRelease occurs after the user ends the click or tap. This event receives parameters (event, overElement)
-
[afterRelease]Q.Event optionalafterRelease occurs after the user ends the click or tap and the release animation completed. This event receives parameters (evt, overElement)
-
[cancelDistance=15]Number optionalcancelDistance
-
-
[option.press.ease=Q.Animation.ease.linear]Q.Animation.ease optionalease